﻿using AutoMapper;
using QuanLyGiaoVuDAL.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QuanLyGiaoVuUI.Models.CaiDat
{
    public class HocKyViewModel
    {
        public System.Guid MaHocKy { get; set; }
        public int TenHocKy { get; set; }
        public System.Guid MaNamHoc { get; set; }

        public HocKyDTO ToHocKyDTO()
        {
            Mapper.CreateMap(typeof(HocKyViewModel), typeof(HocKyDTO));
            var hocKyDTO = new HocKyDTO();
            Mapper.Map(this, hocKyDTO);
            return hocKyDTO;
        }
    }
}